package com.finger.gulimall.product.dao;

import com.finger.gulimall.product.entity.AttrEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品属性
 *
 * @author finger
 * @email 909128695@qq.com
 * @date 2022-03-16 12:43:42
 */
@Mapper
public interface AttrDao extends BaseMapper<AttrEntity> {

    /**
     * 根据该商品的全部属性获取到可供检索的商品属性id
     *
     * @param productAttrIds
     * @return
     */
    List<Long> getSearchAttrIds(@Param("attrIds") List<Long> productAttrIds);
}
